@import './base.scss';
@import './elementui.scss';
@import './mixin.scss';

a {
  text-decoration: none;
}

li {
  list-style: none;
}

ul {
  padding: 0;
}

kbd {
  padding: 2px 4px;
  border-radius: 3px;
  color: $beforeFocus;
}

.describe {
  font-size: 12px;
  color: $describe;
}

.pointer {
  cursor: pointer;
}

.borbox {
  box-sizing: border-box;
}

.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.flex {
  display: flex;
}
.inflex {
  display: inline-flex;
}
.flex-1 {
  flex: 1;
}
.flex-clo {
  flex-direction: column;
}
.flex-ai {
  align-items: center;
}
.flex-aend {
  align-items: flex-end;
}
.flex-jcc {
  justify-content: center;
}
.flex-jcb {
  justify-content: space-between;
}
.flex-jca {
  justify-content: space-around;
}
.flex-nw {
  flex-wrap: nowrap;
}
.flex-w {
  flex-wrap: wrap;
}
.flex-sh {
  flex-shrink: 0;
}

.inblock {
  display: inline-block;
}

@keyframes loadRotate {
  0% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

// 骨架屏加载动画
.load:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  @include background-gradient($thirdColor, $secondColor, $thirdColor);
  transform: translateX(-100%);
  animation: loading 1.5s infinite;
}
@keyframes loading {
  100% {
    transform: translateX(100%);
  }
}

// button
.def-btn {
  color: $beforeFocus;
  background-color: $thirdColor !important;
  border-color: $thirdColor;
  &:hover {
    color: $afterFocus !important;
    border-color: $primary !important;
  }
}
.pmy-btn {
  color: $afterFocus !important;
  background-color: $primary !important;
  border-color: $primary !important;
  &:hover {
    filter: brightness(120%);
  }
}
.dng-btn {
  color: $afterFocus;
  background-color: $danger;
  border-color: $danger;
  &:hover {
    border-color: $afterFocus;
  }
}
.disable-btn {
  color: $describe !important;
  background-color: $thirdColor !important;
  border-color: $thirdColor !important;
}

// text size
.text-mini {
  font-size: 12px;
}
.text-small {
  font-size: 14px;
}
.text-middle {
  font-size: 16px;
}
